<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<div ng-app = "app" ng-controller = "ctrl" ng-init="aaaa">
			<form method="post" action="form.php">
				<!--标题：<input type="text" name ="title" ng-trim ng-model="title" />-->
				密码：<input type="password" name ="title" ng-trim ng-model="title" />
				<input type="text" name="data" />
				<input type="submit" />
			</form>
			{{title}}
		</div> 
		<script type="text/javascript" src="../org/angular.min.js" ></script>
		<script type="text/javascript" src="../org/jquery.min.js" ></script>
		<script>
			var myApp = angular.module('app',[]);
			myApp.controller("ctrl",['$scope',function($scope){
				$scope.title="";
				$("form").submit(function(){
					$("[name='data']").val($scope.title);
				})
			}]);
		</script>
	</body>
</html>
